import http from "@/api/index";

export function getDeptTree(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/getDeptTree`,
    method: "POST",
    data:data
  });
}

export function deviceList(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deviceList`,
    method: "POST",
    data:data
  });
}
export function deviceSave(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deviceSave`,
    method: "POST",
    data:data
  });
}
export function downloadQRCode(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/downloadQRCode`,
    method: "POST",
    data:data
  });
}
export function deviceLog(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deviceLog`,
    method: "POST",
    data:data
  });
}
export function deviceDel(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deviceDel`,
    method: "POST",
    data:data
  });
}
export function accountList(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/accountList`,
    method: "POST",
    data:data
  });
}
export function accountSave(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/accountSave`,
    method: "POST",
    data:data
  });
}
export function accountDel(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/accountDel`,
    method: "POST",
    data:data
  });
}
// 设备详情
export function deviceInfo(data:Object): Promise<any> {
  return http.request({
    url: `/admin/config/deviceInfo`,
    method: "POST",
    data:data
  });
}


